package cn.green.captcha.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Properties;

/**
 * 图形验证码配置
 */
@ConfigurationProperties(prefix = "spring.captcha")
@Component
public class CaptchaProperty{
    //图形宽度
    private String imageWidth;
    //图形高度
    private String imageHeight;
    //字符集
    private String charSet;
    //字符长度
    private String length;

    public String getImageWidth() {
        return imageWidth;
    }

    public void setImageWidth(String imageWidth) {
        this.imageWidth = imageWidth;
    }

    public String getImageHeight() {
        return imageHeight;
    }

    public void setImageHeight(String imageHeight) {
        this.imageHeight = imageHeight;
    }

    public String getCharSet() {
        return charSet;
    }

    public void setCharSet(String charSet) {
        this.charSet = charSet;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }
}
